#pragma once
#include "cocos2d.h"
#include "UI.h"

USING_NS_CC;

enum UISS_MODE
{
	TOPBUTTOM,
	LEFTRIGHT,
	LTRB,
	LBRT
};

enum UISS_ACTION
{
	ENTER,
	LEAVE
};

class UISceneSwitcher :public Layer
{
	public:
	UISceneSwitcher() {};
	static UISceneSwitcher* create(UISS_MODE mode, UISS_ACTION action);
	void play();

	private:
	UISS_MODE mode;
	UISS_ACTION action;
	Node* parta;
	Node* partb;
	float ax, ay, bx, by;
};